package com.sniper.mybatis.service.impl;

import com.sniper.datasource.DataSource;
import com.sniper.datasource.DataSourceValue;
import com.sniper.model.Log;
import com.sniper.mybatis.service.BaseService;

import java.util.List;

/**
 * @author suzhen
 */
public interface LogService extends BaseService<Log> {

    @DataSource(DataSourceValue.MASTER)
    void createLogTable(String tableName);

    List<Log> findNearesLogs(int n);

}
